package com.basic.modules.ykf.dao;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.basic.common.utils.ParamsModel;
import com.basic.modules.sys.model.MainPageShopModel;
import com.basic.modules.ykf.entity.YkfCustomerShopEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 客户店铺管理
 * 
 * @author maoheng
 * @email 15738859597@163.com
 * @date 2024-04-06 18:40:44
 */
@Mapper
public interface YkfCustomerShopDao extends BaseMapper<YkfCustomerShopEntity> {

    IPage<YkfCustomerShopEntity> getShopPage(IPage<YkfCustomerShopEntity> page, @Param("sort") ParamsModel.SortParams sort, @Param("params") YkfCustomerShopEntity params);

    List<YkfCustomerShopEntity> getShopList(@Param("params") YkfCustomerShopEntity params, @Param("sort") ParamsModel.SortParams sort);

    List<YkfCustomerShopEntity> getShopPage2(@Param("sort") ParamsModel.SortParams sort, @Param("params") YkfCustomerShopEntity params);

    IPage<YkfCustomerShopEntity> getStopPage(IPage<YkfCustomerShopEntity> page, @Param("sort") ParamsModel.SortParams sort, @Param("params") YkfCustomerShopEntity params);

    IPage<YkfCustomerShopEntity> getHistoricalShop(IPage<YkfCustomerShopEntity> page, @Param("sort") ParamsModel.SortParams sort, @Param("params") YkfCustomerShopEntity params);

    List<MainPageShopModel> assignAlert();

    IPage<Long> getCustomerPage(IPage<YkfCustomerShopEntity> page, @Param("sort") ParamsModel.SortParams sort, @Param("params") YkfCustomerShopEntity ykfCustomerShopEntity);

    IPage<Long> getCustomerPage2(IPage<YkfCustomerShopEntity> page, @Param("sort") ParamsModel.SortParams sort, @Param("params") YkfCustomerShopEntity ykfCustomerShopEntity);
}
